package com.ruoyi.doorcontrol.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 访客清单对象 yi_visit
 *
 * @author zhang
 * @date 2022-03-11
 */
public class YiVisit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "姓名")
    private String name;

    /** $column.columnComment */
    @Excel(name = "身份证号")
    private String cardId;

    /** $column.columnComment */
    @Excel(name = "联系电话")
    private String phone;

    /** $column.columnComment */
    @Excel(name = "公司")
    private String company;

    /** $column.columnComment */
    @Excel(name = "来源")
    private String froms;

    /** $column.columnComment */
    @Excel(name = "体温")
    private BigDecimal temperature;

    /** 照片 */
    private String photo;

    /** 拜访人ID */
    private String userId;

    /** 拜访部门ID */
    private String deptId;

    /** 拜访人姓名 */
    @Excel(name = "拜访人姓名")
    private String visitName;

    /** 拜访事由 */
    @Excel(name = "拜访事由")
    private String visitInfo;

    /** 拜访部门 */
    @Excel(name = "拜访部门")
    private String visitBumen;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String car;

    /** 健康码 */
    private String codeJk;
    /** 行程码 */
    private String codeXc;
    /** 自查信息 */
    private String codeZc;
    /** 场所码 */
    private String codeCs;
    /** 核酸检测 */
    private String codeHs;

    private Integer deleted;
    /** 下发人脸状态 */
    private String status;

    /** 审批状态 */
    @Excel(name = "审批状态", readConverterExp = "0=待审核,1=已通过,2=已拒绝")
    private Integer isAgree;

    /** 是否查看 */
    private Integer isRead;

    // 上报时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy年MM月dd日 HH时mm分", type = Excel.Type.EXPORT)
    private Date createTime;

    /** 访客的结束时间 */
    private Date endTime;

    /** 访客的编号 */
    private String employeeNo;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setCardId(String cardId)
    {
        this.cardId = cardId;
    }
    public String getCardId()
    {
        return cardId;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }



    public String getPhone()
    {
        return phone;
    }
    public void setCompany(String company)
    {
        this.company = company;
    }

    public String getCompany()
    {
        return company;
    }
    public void setTemperature(BigDecimal temperature)
    {
        this.temperature = temperature;
    }

    public BigDecimal getTemperature()
    {
        return temperature;
    }
    public void setFroms(String froms)
    {
        this.froms = froms;
    }

    public String getFroms()
    {
        return froms;
    }
    public void setPhoto(String photo)
    {
        this.photo = photo;
    }

    public String getPhoto()
    {
        return photo;
    }

    public void setUserId(String userId)
    {
        this.userId = userId;
    }
    public String getUserId()
    {
        return userId;
    }

    public void setDeptId(String deptId)
    {
        this.deptId = deptId;
    }
    public String getDeptId()
    {
        return deptId;
    }

    public void setVisitName(String visitName)
    {
        this.visitName = visitName;
    }

    public String getVisitName()
    {
        return visitName;
    }
    public void setVisitInfo(String visitInfo)
    {
        this.visitInfo = visitInfo;
    }

    public String getVisitInfo()
    {
        return visitInfo;
    }
    public void setVisitBumen(String visitBumen)
    {
        this.visitBumen = visitBumen;
    }

    public String getVisitBumen()
    {
        return visitBumen;
    }
    public void setCar(String car)
    {
        this.car = car;
    }
    public String getCar()
    {
        return car;
    }

    public void setCodeJk(String codeJk)
    {
        this.codeJk = codeJk;
    }
    public String getCodeJk()
    {
        return codeJk;
    }
    public void setCodeXc(String codeXc)
    {
        this.codeXc = codeXc;
    }
    public String getCodeXc()
    {
        return codeXc;
    }
    public void setCodeZc(String codeZc)
    {
        this.codeZc = codeZc;
    }
    public String getCodeZc()
    {
        return codeZc;
    }
    public void setCodeCs(String codeCs)
    {
        this.codeCs = codeCs;
    }
    public String getCodeCs()
    {
        return codeCs;
    }
    public void setCodeHs(String codeHs)
    {
        this.codeHs = codeHs;
    }
    public String getCodeHs()
    {
        return codeHs;
    }

    public void setDeleted(Integer deleted)
    {
        this.deleted = deleted;
    }
    public Integer getDeleted()
    {
        return deleted;
    }

    public void setIsAgree(Integer isAgree)
    {
        this.isAgree = isAgree;
    }
    public Integer getIsAgree()
    {
        return isAgree;
    }

    public void setIsRead(Integer isRead)
    {
        this.isRead = isRead;
    }
    public Integer getIsRead()
    {
        return isRead;
    }

    public Date getCreateTime() {return createTime;}
    public void setCreateTime(Date createTime) {this.createTime = createTime;}

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getEmployeeNo() {
        return employeeNo;
    }

    public void setEmployeeNo(String employeeNo) {
        this.employeeNo = employeeNo;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("cardId", getCardId())
            .append("phone", getPhone())
            .append("company", getCompany())
            .append("temperature", getTemperature())
            .append("froms", getFroms())
            .append("photo", getPhoto())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("visitName", getVisitName())
            .append("visitInfo", getVisitInfo())
            .append("visitBumen", getVisitBumen())
            .append("car", getCar())
            .append("codeJk", getCodeJk())
            .append("codeXc", getCodeXc())
            .append("codeZc", getCodeZc())
            .append("codeCs", getCodeCs())
            .append("codeHs", getCodeHs())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .append("isAgree", getIsAgree())
            .append("isRead", getIsRead())
            .toString();
    }
}
